Forum : What's the difference between <script type="text/javascript"> and <SCRIPT LANGUAGE="javascript">
Brief description  about Online courses   join in Online courses
View Avraham  Venismach 's Profile

What's the difference between <script type="text/javascript"> and <SCRIPT LANGUAGE="javascript">

Do any one know?
Asked by Avraham Venismach | Jan 19, 2010 |  Reply now
Replies (2)
View teacher siliconindia 's Profile
Yes, there is a difference .

<script language="JavaScript"> "language" attribute has been deprecated.
The required attribute is "type" and the type="text/javascript"

Hence...

<script type="text/javascript"> is now the correct form


Because language="javascript" is deprecated does not mean that it will not work.
It means that it is outdated and should be considered as poor coding practice.
Feb 1, 2010
View sanjay s nair 's Profile
http://www.webmasterworld.com/javascript/3370312.htm
Jan 20, 2010